<template>
	<view>
		<view class="toubutx mainpadding" style="padding-bottom: 80rpx;">
			<view class="xiaobtext">可提现金额（元）</view>
			<view class="margin_top2 flexleft">
				<view class="colour">￥</view>
				<view class="dbaitext">23883289.00</view>
			</view>
		</view>
		<view class="mainpadding">
			<view class="neirong">
				<view class="mainpadding ffffff radius ">
					<view class="notitletext">提现金额 (元)</view>
					<view class="flexbetween margin_top">
						<view class="" style="flex: 5;">
							<input type="number" class="daheitext" v-model="txprice">
						</view>
						<view class="huangsetext" style="flex: 1.1;"@click="alltx">全部提现
						</view>
					</view>
				</view>
				<view class="mainpadding_top ffffff radius flexbetween">
					<view class="flexleft">
						<image src="@/static/image/system/wxicon.png" class="wximg margin_right" mode=""></image>
						<view class="titletext hei_text bold">微信</view>
					</view>
					<view class="checkaudio"></view>
				</view>
				<!-- <view class="mainpadding_top ffffff radius">
					<view class="main_size hei_text bold">提现规则</view>
					<view class="xiaohui margin_top">提现规则提现规则提现规则提现规则提现规则提现规则提现规则提现规则</view>
				</view> -->
				<view class="hong_text flexcenter main_size bold margin_top6">*提现备注提现备注提现备注提现备注</view>
				<view class="submitbtn margin_top">提现</view>
				<view class="xiaolan margin_top flexcenter" @click="tztxjl">提现记录</view>
			</view>
		</view>
	</view>
</template>

<script>
	const httpRequest = require("@/common/httpRequest.js")
	export default {
		data() {
			return {
				listbz:{},
				show: false,
				wrzshow: false,
				paytype: 1,
				personInfo: {},
				txprice: "",
				//flag: true, //如果提现金额大于可提现金额为false
				rztext: "",
				withdrawal_bz: "", //提现备注  
				realname_status: "", //实名认证状态
			}
		},
		methods: {
			// 绑定账户
			bangdingzh(){
				uni.navigateTo({
					url: '/pages/workbench/bangdingzh'
				})
			},
			beizhu(){//提现备注
				let _this=this
				httpRequest.request('/api/index/getConfigInfo','GET').then(res=>{
					this.listbz=res.data
				})
			},
			getinfo() {//用户信息
				httpRequest.request('/api/user/index', 'GET', {}, false, false, true).then(res => {
					if (res.code == 1) {
						this.personInfo = res.data
					}
				}).catch(err => {
					httpRequest.toast(err.msg);
				})
			},
			// 跳转提现记录
			tztxjl() {
				uni.navigateTo({
					url: '/pages_mine/tixianjl?type=1'
				})
			},
			tixianbtn() {
				if (this.txprice == "") {
					httpRequest.toast("请输入提现金额")
					return false
				}
				httpRequest.request('/api/user/addWithdrawal', 'GET', {
					price: _this.txprice,
				}, false, false, true).then(res => {
					if (res.code == 1) {
						this.show = true
					} else {
						httpRequest.toast(res.msg);
					}
				}).catch(err => {
					httpRequest.toast(err.msg);
				})
			},
			close() { //提现弹出框
				this.show = false
			},
			alltx(){//全部提现
				this.txprice = this.personInfo.money;
			},
		}
	}

</script>

<style lang="scss" scoped>
	.wximg{
		width: 32rpx;
		height: 32rpx;
		min-width: 32rpx;
	}
	.bighuangsetext {
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #3478F5;
	}
	
	.toubutx{
		background: linear-gradient(90deg, #5A9DFF 0%, #3478F5 100%);
	}
	.colour {
		color: #fff;
	}

	.renzbtn {
		width: 291.5rpx;
		height: 74rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #fff;
		border-top: 1rpx solid #E7E7E7;
		// border-right:1rpx solid #E7E7E7;
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		border-radius: 0 0 20rpx 0;
		color: #228DFF;
	}
/deep/.u-radio-group {
		flex: none !important;
	}
	.quxiaobtn {
		border-radius: 0 0 0 20rpx;
		width: 291.5rpx;
		height: 74rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		background-color: #fff;
		border-top: 1rpx solid #E7E7E7;
		border-right: 1rpx solid #E7E7E7;
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #666666;
	}

	.tanchuceng {
		padding: 40rpx 70rpx;
	}


	.querenbtn {
		border-radius: 40rpx;
		font-size: 32rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FFFFFF;
		width: 328rpx;
		height: 64rpx;
		background-size: 100% 100%;
		display: flex;
		background-color: #3478F5;
		align-items: center;
		justify-content: center;
	}

	.hongstext {
		font-size: 26rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #FF0303;
	}

	.huisetext {
		font-size: 26rpx;
		font-family: PingFang SC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
	}


	.xiahuax {
		padding-bottom: 30rpx;
		border-bottom: 2rpx solid rgba(0, 0, 0, 0.05);
	}

	.huangsetext {
		font-size: 28rpx;
		font-family: PingFang SC-Medium, PingFang SC;
		font-weight: 500;
		color: #3478F5;
	}

	.sishitext {
		font-size: 40rpx;
		font-family: DIN Next LT Pro-Regular, DIN Next LT Pro;
		font-weight: 400;
		color: #333333;
	}

	.daheitext {
		font-size: 55rpx;
		font-family: DIN Next LT Pro-Regular, DIN Next LT Pro;
		font-weight: 500;
		color: #333333;
	}

	.neirong {
		position: relative;
		top: -80rpx;
	}

	.dbaitext {
		font-size: 40rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #FFFFFF;
	}

	.xiaobtext {
		font-size: 24rpx;
		font-family: PingFang SC-Heavy, PingFang SC;
		font-weight: 800;
		color: #FFFFFF;
	}

	.margin_top7 {
		margin-top: 70rpx;
	}

</style>

